package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据分页查询频道
     */
    ResponseResult<List<AdChannel>> findChannelByPage(ChannelDto channelDto);

    /**
     * 频道新增
     */
    ResponseResult addChannel(AdChannel adChannel);

    /**
     * 频道修改
     */
    ResponseResult updateChannel(AdChannel adChannel) throws Exception;

    /**
     * 频道删除
     */
    ResponseResult deleteChannel(Integer id);

    /**
     * 查询所有频道
     */
    ResponseResult findAllChannels();
}
